#include <iostream>
#include <cstdio> 
#include <vector>
#include <deque>
using namespace std;

int main(void){
	int a[502];
	for(int i=0;i<502;i++)
		a[i]=0;

	deque<int> x,y;
	x.push_back(0);
	y.push_back(0);
	for(char c=getchar();c>='0'&&c<='9';c=getchar()){
		x.push_back(c-'0');
	}
	for(char c=getchar();c>='0'&&c<='9';c=getchar()){
		y.push_back(c-'0');
	}
	if(x.size()>y.size()){
		for(int i=x.size()-y.size();i>0;i--){
			y.push_front(0);
		}
	}

	if(x.size()<y.size()){
		for(int i=y.size()-x.size();i>0;i--){
			x.push_front(0);
		}
	}

	for(int i=x.size()-1;i>=0;i--){
		a[i]+=x[i]+y[i];
		if(a[i]>=10){
			a[i-1]+=1;
			a[i]-=10;
		}
	}
	a[x.size()]=-1;
	int i=0;
	for(;a[i]==0;i++);
		if(i==x.size()){
			cout<<0;
			return 0;
		}
	for(;i<x.size();i++)
		cout<<a[i];

	return 0;
}